package com.lijy.testif;

import org.junit.Test;

public class TestIf {

    @Test
    public void testIf() {
        String[] s = {"1", "2"};
        if ("1".equals(s[0])){
            System.out.println("Hello");
        }
        else if ("2".equals(s[1])) {
            System.out.println("world");
        }

        if ("2".equals(s[1])) {
            System.out.println("world");
        }

    }

}
